package com.caifu.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author yb
 * @since 2021-03-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class YsShopLicence extends Model<YsShopLicence> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * ys_shop主键
     */
    private String shopId;

    /**
     * 证照名称（ys_label的id）
     */
    private String licenceType;

    /**
     * 有效类型 1-有效期限 2-永久(无期限)
     */
    private String validityType;

    /**
     * 有效期至时间(yyyy-MM-dd)
     */
    private String validityTime;

    /**
     * 状态 1-有效 2-无效 9-删除
     */
    private Integer state;


    @JSONField(format = "yyyy-MM-dd")
    private Date createTime;

    @JSONField(format = "yyyy-MM-dd")
    private Date updateTime;


    @TableField(exist = false)
    private String[] imageArr;

    /**
     * 是否生效中 1-生效 2-失效
     */
    @TableField(exist = false)
    private Integer isEffective;
}
